package com.ctgu.A1_3;

import java.util.List;

public class Subject {
    private String name;
    private Double score;

    public Subject() {
    }

    public Subject(String name, Double score) {
        this.name = name;
        this.score = score;
    }

    @Override
    public String toString() {
        return "课程{" +
                "课程名='" + name + '\'' +
                ", 学分=" + score +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }
}
